import storage from '../../utils/storage'

const goodsStore = {
  namespaced: true,
  state: () => {
    return {
      goodsname: '老坛酸菜',
      price: 3.5
    }
  },
  mutations: {
    changeGoodsName: (state, params) => {
      state.goodsname = params
      storage.setItem('username', params)
    }
  },
  getters: {

  },
  actions: {

  }
}
export default goodsStore
